using System;
using System.Threading.Tasks;
using CR.Domain.Entities;

namespace CR.Infrastructure.Repositories
{
    /// <summary>
    /// 养殖信息仓储接口
    /// </summary>
    public interface IBreedingInfoRepository : IBaseRepository<BreedingInfo>
    {
        /// <summary>
        /// 根据溯源码获取养殖信息
        /// </summary>
        /// <param name="traceabilityCode">溯源码</param>
        /// <returns>养殖信息</returns>
        Task<BreedingInfo> GetByTraceabilityCodeAsync(string traceabilityCode);
    }
} 